package com.briup.jz.bean.extend;

import java.util.List;

import com.briup.jz.bean.Article;
import com.briup.jz.bean.BaseUser;
import com.briup.jz.bean.Category;
import com.briup.jz.bean.Comment;

// 用于封装多表查询的结果
public class ArticleExtend extends Article {
  /**
   *
   */
  private static final long serialVersionUID = 1L;
  // 多对一关系， 多个文章对应一个栏目分类，一个文章有一个栏目分类
  private Category category;
  private BaseUser author;
  // 一对多关系
  private List<Comment> comments;

  public Category getCategory() {
    return category;
  }
  public void setCategory(Category category) {
    this.category = category;
  }
  public BaseUser getAuthor() {
    return author;
  }
  public void setAuthor(BaseUser author) {
    this.author = author;
  }
  public List<Comment> getComments() {
    return comments;
  }
  public void setComments(List<Comment> comments) {
    this.comments = comments;
  }
}
